package com.company4.students;

import java.util.List;

public class printstudent {
    public static void printStudents(List<student> listStudents) {
        System.out.println("打印所有学生信息");
        for (student student : listStudents) {
            System.out.println(student);
        }
    }
    public static void printStudent(student s){
        if (null == s) {
            System.out.println("无对象");

        } else {
            System.out.println("搜索成功" + s);
        }
    }
}
